Skip to content

Михаил Болотов. Задача Thing Cache написать тесты#7

Open
Mikhail-Bolotov wants to merge 1 commit intokontur-courses:masterfrom
Mikhail-Bolotov:TaskThingCache
Open

Михаил Болотов. Задача Thing Cache написать тесты#7
Mikhail-Bolotov wants to merge 1 commit intokontur-courses:masterfrom
Mikhail-Bolotov:TaskThingCache

Conversation

@Mikhail-Bolotov
Copy link
Copy Markdown

No description provided.

Comment thread ThingCache/ThingCache.cs
// Пример теста
[Test]
public void GiveMeAGoodNamePlease()
public void GetThingAndReturn()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все тесты на месте, но я бы поработал над именованием тестов.

В названии хочется иметь три компонента: какой метод тестируем, какая ситуация и какое в ней ожидаемое поведение.

Например: Get_WhenThingExists_ReturnsIt, Get_WhenThingDoesNotExist_DoesNotCache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants